<!DOCTYPE html>
<html lang="en" >
<head>
</head>
<body>
    <div id="vue"></div>

    <!-- 引入js文件 -->
    <script src="http://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.min.js"></script>
    <script src="http://unpkg.com/axios/dist/axios.min.js"></script>


    <script type="text/javascript">
        var vm=new Vue({
            el:'#vue',
            mounted(){ //钩子函数 链式编程
                axios.get('../json/data.json').then(response=>{console.log(response.data)});
            }
        });
    </script>
    
</body>
</html>